package j03zuoye;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Z2dasao {
    public static void main(String[] args) {
        ExecutorService es = Executors.newCachedThreadPool();
        es.submit(()->{
            for (int i = 0; i < 100; i++) {
                System.out.println("张三在扫地");
            }
        });
        es.submit(()->{
            for (int i = 0; i < 180; i++) {
                System.out.println("李四在擦玻璃");
            }
        });
    }
}
